package br.com.ecommerce.service;

import java.io.IOException;

import org.apache.velocity.app.VelocityEngine;
import org.jboss.logging.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.MessageSource;
import org.springframework.stereotype.Service;

import br.com.ecommerce.domain.dao.ClienteDao;
import br.com.ecommerce.domain.entity.Cliente;
import br.com.ecommerce.seguranca.exception.SegurancaException;
import br.com.suricattus.surispring.framework.service.ServiceSupport;

/**
 * @author marco.nascimento
 * @see Cliente
 */
@Service("ClienteService")
public class ClienteService extends ServiceSupport {
    private static final long serialVersionUID = -6550751671082328156L;

    @Autowired
    private Logger logger;
    
    @Autowired
    private VelocityEngine velocityEngine;
    
    @Autowired
    private RelatorioService relatorioService;
    
    @Autowired
    private UsuarioService usuarioService;
    
    @Autowired
    private ClienteDao clienteDao;
    
    @Autowired
    private MessageSource messageSource;
    
    public void salvar(Cliente cliente) throws SegurancaException, IOException {
        saveOrUpdate(cliente);
    }
}